﻿using Rhino;
using Rhino.Commands;

namespace AiMoRhino.Main
{

    [CommandStyle(Style.Hidden | Style.DoNotRepeat)]
    public class CSharpScriptCommand : Command
    {
        public CSharpScriptCommand()
        {
            Instance = this;
        }
        public static CSharpScriptCommand Instance { get; private set; }

        public override string EnglishName => "CSharpScriptCommand";

        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            return AimoStartExternal.RunCommand() ? Result.Success : Result.Failure;
        }
    }
}
